{% extends 'worklink/base.html' %}
{% load static %}
{% load utils %}
{% block content %}
<div class="header-inner bg-light">
    <div class="container">
        <div class="row">
            <div class="col-lg-9 col-md-12">
                <h2 class="text-primary">{{ title }}</h2>
                <ol class="breadcrumb mb-0 p-0">
                    <li class="breadcrumb-item"><a href="{% url 'index' %}"> Домой </a></li>
                    <li class="breadcrumb-item active"> <i class="fas fa-chevron-right"></i> <span>{{ title }}</span></li>
                </ol>
            </div>
        </div>
    </div>
</div>

<section class="mt-5 mb-5">
    <div class="container">
        {% if objects %}
            {% for vacancy in objects %}
                <div class="card my-2">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-10">
                                <h4 class="card-title">
                                    <a href="{% url 'company:vacancy' vacancy.id %}">{{ vacancy.title }}</a>
                                </h4>
                                <p class="card-text">{{ vacancy.salary|price_format }} <span>руб.</span></p>
                                <a href="{% url 'adminapp:vacancies_plus' vacancy.id %}" class="btn btn-success">Опубликовать</a>
                            </div>
                        </div>
                    </div>
                </div>
            {% endfor%}
        {% else %}
            <div class="alert alert-warning">Все вакансий опубликованы</div>
        {% endif %}
    </div>
</section>



{% endblock %}